package com.moyun.model.common;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * <h3>moyun-base</h3>
 * <p>公共实体类</p>
 *
 * @author : ybx
 * @date : 2021-10-12 17:37:47
 **/
public class CommonFieldEntity {
    /**
     * 创建人 默认是1 (1是管理员admin)
     */
    @ApiModelProperty(value = "创建人",hidden = true)
    @TableField(value = "creater",fill = FieldFill.INSERT)
    private String creater;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",hidden = true)
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人 默认是1 (1是管理员admin)
     */
    @ApiModelProperty(value = "修改人",hidden = true)
    @TableField(value = "modifier",fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间",hidden = true)
    @TableField(value = "modify_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    public CommonFieldEntity() {
    }

    public CommonFieldEntity(String creater, LocalDateTime createTime, String modifier, LocalDateTime modifyTime) {
        this.creater = creater;
        this.createTime = createTime;
        this.modifier = modifier;
        this.modifyTime = modifyTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

}
